<!DOCTYPE html>



  


<html class="theme-next gemini use-motion" lang="zh-Hans">
<head><meta name="generator" content="Hexo 3.8.0">
  <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="theme-color" content="#222">









<meta http-equiv="Cache-Control" content="no-transform">
<meta http-equiv="Cache-Control" content="no-siteapp">
















  
  
  <link href="/limh/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css">







<link href="/limh/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css">

<link href="/limh/css/main.css?v=5.1.4" rel="stylesheet" type="text/css">


  <link rel="apple-touch-icon" sizes="180x180" href="/limh/images/apple-touch-icon-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="32x32" href="/limh/images/favicon-32x32-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="16x16" href="/limh/images/favicon-16x16-next.png?v=5.1.4">


  <link rel="mask-icon" href="/limh/images/logo.svg?v=5.1.4" color="#222">





  <meta name="keywords" content="Flutter,">










<meta name="description" content="路由导航用来管理所有页面的跳转，需要在入口函数中定义跳转名称对应的目标页面，方法如下： 12345678910111213&amp;gt; class MyApp extends StatelessWidget &amp;#123;&amp;gt;  @override&amp;gt;  Widget build(BuildContext context) &amp;#123;&amp;gt;    return MaterialApp(&amp;g">
<meta name="keywords" content="Flutter">
<meta property="og:type" content="article">
<meta property="og:title" content="Flutter路由导航">
<meta property="og:url" content="https://tdnr.gitee.io/limh/2019/01/17/flutter3/index.html">
<meta property="og:site_name" content="土逗牛肉">
<meta property="og:description" content="路由导航用来管理所有页面的跳转，需要在入口函数中定义跳转名称对应的目标页面，方法如下： 12345678910111213&amp;gt; class MyApp extends StatelessWidget &amp;#123;&amp;gt;  @override&amp;gt;  Widget build(BuildContext context) &amp;#123;&amp;gt;    return MaterialApp(&amp;g">
<meta property="og:locale" content="zh-Hans">
<meta property="og:updated_time" content="2019-02-13T06:11:13.485Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Flutter路由导航">
<meta name="twitter:description" content="路由导航用来管理所有页面的跳转，需要在入口函数中定义跳转名称对应的目标页面，方法如下： 12345678910111213&amp;gt; class MyApp extends StatelessWidget &amp;#123;&amp;gt;  @override&amp;gt;  Widget build(BuildContext context) &amp;#123;&amp;gt;    return MaterialApp(&amp;g">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/limh/',
    scheme: 'Gemini',
    version: '5.1.4',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="https://tdnr.gitee.io/limh/2019/01/17/flutter3/">





  <title>Flutter路由导航 | 土逗牛肉</title>
  








</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans ">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/limh/" class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">土逗牛肉</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle"></p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/limh/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br>
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/limh/archives/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br>
            
            归档
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/limh/tags/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br>
            
            标签
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/limh/categories/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th"></i> <br>
            
            分类
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/limh/about/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-user"></i> <br>
            
            关于
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="https://tdnr.gitee.io/limh/limh/2019/01/17/flutter3/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="土逗牛肉">
      <meta itemprop="description" content>
      <meta itemprop="image" content="/limh/images/avatar.jpg">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="土逗牛肉">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">Flutter路由导航</h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2019-01-17T20:35:45+08:00">
                2019-01-17
              </time>
            

            

            
          </span>

          
            <span class="post-category">
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/limh/categories/Flutter/" itemprop="url" rel="index">
                    <span itemprop="name">Flutter</span>
                  </a>
                </span>

                
                
              
            </span>
          

          
            
          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <blockquote>
<p>路由导航用来管理所有页面的跳转，需要在入口函数中定义跳转名称对应的目标页面，方法如下：</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br></pre></td><td class="code"><pre><span class="line">&gt; class MyApp extends StatelessWidget &#123;</span><br><span class="line">&gt;  @override</span><br><span class="line">&gt;  Widget build(BuildContext context) &#123;</span><br><span class="line">&gt;    return MaterialApp(</span><br><span class="line">&gt;      home: _MyHomePage(),</span><br><span class="line">&gt;      routes: &#123;</span><br><span class="line">&gt;      &apos;/login&apos;: (BuildContext context) =&gt; LoginPage(),</span><br><span class="line">&gt;      &apos;/user&apos;: (BuildContext context) =&gt; UserPage(),</span><br><span class="line">&gt;      &#125;,</span><br><span class="line">&gt;    );</span><br><span class="line">&gt;  &#125;</span><br><span class="line">&gt;&#125;</span><br><span class="line">&gt;</span><br></pre></td></tr></table></figure>
</blockquote>
<h3 id="一、push打开新页面"><a href="#一、push打开新页面" class="headerlink" title="一、push打开新页面"></a>一、push打开新页面</h3><h4 id="pushNamed"><a href="#pushNamed" class="headerlink" title="pushNamed"></a>pushNamed</h4><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">Navigator.of(context).pushNamed(&apos;/login&apos;);</span><br></pre></td></tr></table></figure>
<ul>
<li>说明：每次打开新的页面都会在栈顶重新创建，并且旧页面不会关闭</li>
</ul>
<h4 id="pushReplacementNamed"><a href="#pushReplacementNamed" class="headerlink" title="pushReplacementNamed"></a>pushReplacementNamed</h4><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">Navigator.of(context).pushReplacementNamed(&apos;/login&apos;);</span><br></pre></td></tr></table></figure>
<ul>
<li>说明：把当前页栈中的位置替换成目标页面</li>
</ul>
<h4 id="pushReplacement"><a href="#pushReplacement" class="headerlink" title="pushReplacement"></a>pushReplacement</h4><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">Navigator.of(context).pushReplacement(context,new LoginPage());</span><br></pre></td></tr></table></figure>
<ul>
<li>说明：和pushReplacementNamed方法类似，不同点在于此方法可以直接new要跳转的页面，而pushReplacementNamed方法需要在routes中定义要跳转的目标页面名称</li>
</ul>
<h4 id="popAndPushNamed"><a href="#popAndPushNamed" class="headerlink" title="popAndPushNamed"></a>popAndPushNamed</h4><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">Navigator.popAndPushNamed(context, &apos;/login&apos;);</span><br></pre></td></tr></table></figure>
<p>-说明：关闭当前页，打开目标页面</p>
<h4 id="pushNamedAndRemoveUntil"><a href="#pushNamedAndRemoveUntil" class="headerlink" title="pushNamedAndRemoveUntil"></a>pushNamedAndRemoveUntil</h4><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">1、Navigator.of(context).pushNamedAndRemoveUntil(&apos;/login&apos;, (Route&lt;dynamic&gt; route) =&gt; false);</span><br><span class="line">2、Navigator.of(context).pushNamedAndRemoveUntil(&apos;/login&apos;, ModalRoute.withName(&apos;/&apos;));</span><br></pre></td></tr></table></figure>
<ul>
<li>说明：</li>
<li>方法1：关闭所有页面，打开新页面。  (Route<dynamic> route) =&gt; false是否要关闭完所有页面再打开目标页面</dynamic></li>
<li>方法2：/默认是主页，关闭除主页之外的其他页面，再打开目标页面</li>
</ul>
<h4 id="pushAndRemoveUntil"><a href="#pushAndRemoveUntil" class="headerlink" title="pushAndRemoveUntil"></a>pushAndRemoveUntil</h4><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">Navigator.pushAndRemoveUntil(context,MaterialPageRoute(builder: (BuildContext context) =&gt; LoginPage()),(Route&lt;dynamic&gt; route) =&gt; false,);</span><br></pre></td></tr></table></figure>
<ul>
<li>说明：和pushNamedAndRemoveUntil方法类似，该方法不需要在入口routes中定义路由映射，直接通过new打开</li>
</ul>
<h4 id="popUntil"><a href="#popUntil" class="headerlink" title="popUntil"></a>popUntil</h4><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">Navigator.popUntil(context, ModalRoute.withName(&apos;/login&apos;));</span><br></pre></td></tr></table></figure>
<ul>
<li>说明：有些应用场景下，用户可能不得不填写一个由三部分组成的长表单，该表单可能在移动应用程序的三个连续屏幕中显示。现在在表单的第三个页面，用户决定取消填写表单。用户单击Cancel，就会弹出所有之前的与表单相关的屏幕，并将用户带回主屏幕，从而丢失所有与表单相关的数据(在这种情况下，这是我们想要的)。我们不会在这里推出任何新东西，只是回到以前的路线。。</li>
</ul>
<h3 id="二、pop"><a href="#二、pop" class="headerlink" title="二、pop"></a>二、pop</h3><h4 id="maybePop"><a href="#maybePop" class="headerlink" title="maybePop"></a>maybePop</h4><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">Navigator.of(context).maybePop();</span><br></pre></td></tr></table></figure>
<p>-说明：会自动进行判断，如果当前页面pop后，会显示其他页面，不会出现问题，则将执行当前页面的pop操作 否则将不执行</p>
<h4 id="canPop"><a href="#canPop" class="headerlink" title="canPop"></a>canPop</h4><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">bool canPop=Navigator.of(context).canPop();</span><br></pre></td></tr></table></figure>
<p>-说明：判断当前页面能否进行pop操作，并返回bool值</p>
<h4 id="pop"><a href="#pop" class="headerlink" title="pop"></a>pop</h4><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">Navigator.of(context).pop();</span><br></pre></td></tr></table></figure>
<p>-说明：直接pop当前页面</p>
<h3 id="传递参数"><a href="#传递参数" class="headerlink" title="传递参数"></a>传递参数</h3><h4 id="MaterialPageRoute传参"><a href="#MaterialPageRoute传参" class="headerlink" title="MaterialPageRoute传参"></a>MaterialPageRoute传参</h4><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line">String params;</span><br><span class="line"> Navigator.push(context, new MaterialPageRoute(builder: (BuildContext context) =&gt; new mainPage(params)));</span><br><span class="line">//接收参数</span><br><span class="line">class mainPage extends StatelessWidget &#123;</span><br><span class="line">  final String userName;</span><br><span class="line">  mainPage(this.userName);</span><br><span class="line">  @override</span><br><span class="line">  Widget build(BuildContext context) &#123;</span><br><span class="line">    print(userName);</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
<h3 id="带返回值的页面跳转"><a href="#带返回值的页面跳转" class="headerlink" title="带返回值的页面跳转"></a>带返回值的页面跳转</h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line">String userName = &quot;hhh&quot;;</span><br><span class="line">Navigator.push(</span><br><span class="line">    context,</span><br><span class="line">    new MaterialPageRoute(</span><br><span class="line">        builder: (BuildContext context) =&gt;</span><br><span class="line">        new LoginPage(userName))).then((data)&#123;</span><br><span class="line">          result =data;</span><br><span class="line">          print(result);</span><br><span class="line">&#125;);</span><br><span class="line">//在LoginPage页面使用 Navigator.of(context).pop(&apos;params&apos;);</span><br></pre></td></tr></table></figure>

      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/limh/tags/Flutter/" rel="tag"># Flutter</a>
          
        </div>
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/limh/2019/01/16/flutter1/" rel="next" title="Flutter撸一个加载动画">
                <i class="fa fa-chevron-left"></i> Flutter撸一个加载动画
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/limh/2019/02/16/android04/" rel="prev" title="自定义简易日历对话框">
                自定义简易日历对话框 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          

  
    <div class="comments" id="comments">
      <div id="SOHUCS"></div>
    </div>

  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <img class="site-author-image" itemprop="image" src="/limh/images/avatar.jpg" alt="土逗牛肉">
            
              <p class="site-author-name" itemprop="name">土逗牛肉</p>
              <p class="site-description motion-element" itemprop="description"></p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/limh/archives/">
              
                  <span class="site-state-item-count">255</span>
                  <span class="site-state-item-name">日志</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-categories">
                <a href="/limh/categories/index.html">
                  <span class="site-state-item-count">8</span>
                  <span class="site-state-item-name">分类</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-tags">
                <a href="/limh/tags/index.html">
                  <span class="site-state-item-count">7</span>
                  <span class="site-state-item-name">标签</span>
                </a>
              </div>
            

          </nav>

          

          
            <div class="links-of-author motion-element">
                
                  <span class="links-of-author-item">
                    <a href="https://github.com/limhGeek" target="_blank" title="GitHub">
                      
                        <i class="fa fa-fw fa-github"></i>GitHub</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="mailto:1591054297@qq.com" target="_blank" title="E-Mail">
                      
                        <i class="fa fa-fw fa-envelope"></i>E-Mail</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="https://www.jianshu.com/u/f73b243e7cc9" target="_blank" title="简书">
                      
                        <i class="fa fa-fw fa-user-circle-o"></i>简书</a>
                  </span>
                
            </div>
          

          
          

          
          

          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-3"><a class="nav-link" href="#一、push打开新页面"><span class="nav-number">1.</span> <span class="nav-text">一、push打开新页面</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#pushNamed"><span class="nav-number">1.1.</span> <span class="nav-text">pushNamed</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#pushReplacementNamed"><span class="nav-number">1.2.</span> <span class="nav-text">pushReplacementNamed</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#pushReplacement"><span class="nav-number">1.3.</span> <span class="nav-text">pushReplacement</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#popAndPushNamed"><span class="nav-number">1.4.</span> <span class="nav-text">popAndPushNamed</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#pushNamedAndRemoveUntil"><span class="nav-number">1.5.</span> <span class="nav-text">pushNamedAndRemoveUntil</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#pushAndRemoveUntil"><span class="nav-number">1.6.</span> <span class="nav-text">pushAndRemoveUntil</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#popUntil"><span class="nav-number">1.7.</span> <span class="nav-text">popUntil</span></a></li></ol></li><li class="nav-item nav-level-3"><a class="nav-link" href="#二、pop"><span class="nav-number">2.</span> <span class="nav-text">二、pop</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#maybePop"><span class="nav-number">2.1.</span> <span class="nav-text">maybePop</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#canPop"><span class="nav-number">2.2.</span> <span class="nav-text">canPop</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#pop"><span class="nav-number">2.3.</span> <span class="nav-text">pop</span></a></li></ol></li><li class="nav-item nav-level-3"><a class="nav-link" href="#传递参数"><span class="nav-number">3.</span> <span class="nav-text">传递参数</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#MaterialPageRoute传参"><span class="nav-number">3.1.</span> <span class="nav-text">MaterialPageRoute传参</span></a></li></ol></li><li class="nav-item nav-level-3"><a class="nav-link" href="#带返回值的页面跳转"><span class="nav-number">4.</span> <span class="nav-text">带返回值的页面跳转</span></a></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright">&copy; <span itemprop="copyrightYear">2019</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">土逗牛肉</span>

  
</div>


  <div class="powered-by">由 <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a> 强力驱动</div>



  <span class="post-meta-divider">|</span>



  <div class="theme-info">主题 &mdash; <a class="theme-link" target="_blank" href="https://github.com/iissnan/hexo-theme-next">NexT.Gemini</a> v5.1.4</div>




        







        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
	var str = GetUrlParam('height');
    if (str === '0'){
		document.getElementById('header').style.display = 'none';
		document.getElementById('comments').style.display = 'none';
		document.getElementById('footer').style.display = 'none';
		document.getElementsByClassName('post-footer').item(0).style.display = 'none'
	}
	
    function GetUrlParam(paraName) {
        var url = document.location.toString();
        var arrObj = url.split("?");

        if (arrObj.length > 1) {
            var arrPara = arrObj[1].split("&");
            var arr;

            for (var i = 0; i < arrPara.length; i++) {
                 arr = arrPara[i].split("=");

                if (arr != null && arr[0] === paraName) {
                    return arr[1];
                }
            }
            return "";
        } else {
            return "";
        }
    }
</script>









  












  
  
    <script type="text/javascript" src="/limh/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/limh/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/limh/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/limh/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/limh/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/limh/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  


  


  <script type="text/javascript" src="/limh/js/src/utils.js?v=5.1.4"></script>

  <script type="text/javascript" src="/limh/js/src/motion.js?v=5.1.4"></script>



  
  


  <script type="text/javascript" src="/limh/js/src/affix.js?v=5.1.4"></script>

  <script type="text/javascript" src="/limh/js/src/schemes/pisces.js?v=5.1.4"></script>



  
  <script type="text/javascript" src="/limh/js/src/scrollspy.js?v=5.1.4"></script>
<script type="text/javascript" src="/limh/js/src/post-details.js?v=5.1.4"></script>



  


  <script type="text/javascript" src="/limh/js/src/bootstrap.js?v=5.1.4"></script>



  


  




	





  





  












  





  

  

  

  
  

  

  

  

</body>
</html>
